import request from '@/utils/request'

// 查询门店列表
export function listPlatformShop(query) {
  return request({
    url: '/genius/platform-shop/list',
    method: 'get',
    params: query
  })
}

// 查询门店详细
export function getPlatformShop(id) {
  return request({
    url: '/genius/platform-shop/' + id,
    method: 'get'
  })
}

// 新增门店
export function addPlatformShop(data) {
  return request({
    url: '/genius/platform-shop',
    method: 'post',
    data: data
  })
}

// 修改门店
export function updatePlatformShop(data) {
  return request({
    url: '/genius/platform-shop',
    method: 'put',
    data: data
  })
}

// 删除门店
export function delPlatformShop(id) {
  return request({
    url: '/genius/platform-shop/' + id,
    method: 'delete'
  })
}

// 逻辑删除门店
export function removedPlatformShop(id) {
  return request({
    url: '/genius/platform-shop/' + id,
    method: 'delete'
  })
}
